﻿using SHRIS.MIS.Common.Util.Model;
using SHRIS.MIS.Entity.SystemManage;
using SHRIS.MIS.Model.Param.SystemManage;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace SHRIS.MIS.IService.SystemManage
{
    public interface IUserService
    {
        Task<List<UserEntity>> GetList(UserListParam param);
        Task<List<UserEntity>> GetPageList(UserListParam param, Pagination pagination);

        Task<UserEntity> GetEntity(Guid id);

        Task<UserEntity> GetEntity(string userName);

        Task<UserEntity> CheckLogin(string userName);

        bool ExistUserName(UserEntity entity);

        Task UpdateUser(UserEntity entity);

        Task SaveForm(UserEntity entity);

        Task DeleteForm(string ids);

        Task ResetPassword(UserEntity entity);

        Task ChangeUser(UserEntity entity);
    }
}
